<%-- 
    Document   : homePage
    Created on : 4 avr. 2013, 20:42:24
    Author     : virginie
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <!-- En-tete -->
        <div id="wrapper">
            <div id="logo" class="container">
                <h1><a href="accueil">MIAGISTSHOP </a></h1>
            </div>

            <div id="menu-wrapper">
                <div id="menu">

                    <s:if test="%{#session['connect']==true}" >
                        <ul>
                            <!--<li><a href="monCompte.jsp">Mon compte</a></li>-->
                            <li><a href="mesInfos.action" >Mes Infos</a></li>
                            <li><a href="historiqueCommande.action">Mes commandes</a></li>
                            <li><a href="magasins.action">Nos magasins</a></li>
                            <!--<li><a href="contact.jsp">Contactez-nous</a></li>-->
                            <li><a href="displayCart.action" ><img style="width: 16px;height: 16px;" src="jsp/pics/cart-logo.jpg" /> Panier (
                                    <s:if test="%{nbProduit != null}">
                                        <s:property value="%{nbProduit}"/>
                                    </s:if>
                                    <s:else>0</s:else>
                                        )</a></li>
                                <li><s:a href="deconnexion.action">Déconnexion</s:a></li>
                            </ul>
                    </s:if>
                    <s:else>
                        <ul>
                            <li><s:a href="controleAuthentification.action">Mon compte</s:a></li>
                                <li><a href="magasins.action" >Nos magasins</a></li>
                                <li><a href="displayCart.action"><img style="width: 16px;height: 16px;" src="jsp/pics/cart-logo.jpg" /> Panier (
                                    <s:if test="%{nbProduit != null}">
                                        <s:property value="%{nbProduit}"/>
                                    </s:if>
                                    <s:else>0</s:else>
                                        )</a></li>
                                <li>
                                    
                                    
                                    
                                </li>
                            </ul>
                    </s:else>
                </div>
            </div>
    </body>
</html>
